package jfox.platform.infrastructure;

import javax.persistence.Column;

/**
 * 可以检查引用的 Entity
 * 采用 Property 格式，如：{ACCOUNT=1,2,3,4 USER=12,34,56}
 *
 * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
 */
public abstract class VersionableAndRefInspectableEntityObject extends RefInspectableEntityObject implements IVersionableEntityObject, IRefInspectableEntityObject{

    @Column(name="VERSION")
    private int version = 0;

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public void increaseVersion(){
        this.version++;
    }
}